package com.baiyinet.rest;

import java.util.Arrays;

/**
 * @author J.Huang
 * @version 1.0
 * @since 16/11/23
 */

public class UploadImgResponse {
    public String[] Data;
    public int Total;

    public String getDataString() {
        StringBuilder sb = new StringBuilder();
        sb.append("[");
        for (String str : Data) {
            sb.append("\"");
            sb.append(str);
            sb.append("\",");
        }

        sb.deleteCharAt(sb.length() - 1);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public String toString() {
        return "UploadImgResponse{" +
                "Data=" + Arrays.toString(Data) +
                ", Total=" + Total +
                '}';
    }
}
